package com.hcb.micro.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hcb.micro.dao.interfaceClass.CashRedLogMapper;
import com.hcb.micro.dto.CashRedLog;
import com.hcb.micro.service.ICashRedLogService;

@Service("CashRedLogService")
public class CashRedLogServiceImpl implements ICashRedLogService {

	@Autowired
	CashRedLogMapper cashRedLogMapper;
	
	@Override
	public int deleteByPrimaryKey(Integer id) {
		return cashRedLogMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(CashRedLog record) {
		return cashRedLogMapper.insert(record);
	}

	@Override
	public int insertSelective(CashRedLog record) {
		return cashRedLogMapper.insertSelective(record);
	}

	@Override
	public CashRedLog selectByPrimaryKey(Integer id) {
		return cashRedLogMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(CashRedLog record) {
		return cashRedLogMapper.updateByPrimaryKey(record);
	}

	@Override
	public int updateByPrimaryKey(CashRedLog record) {
		return cashRedLogMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public CashRedLog selectByOrderId(Integer orderId) {
		return cashRedLogMapper.selectByOrderId(orderId);
	}

	@Override
	public List<CashRedLog> selectByAccountId(Integer accountId) {
		return cashRedLogMapper.selectByAccountId(accountId);
	}

	@Override
	public List<CashRedLog> getCashRedLogListByPara(Map<String, Object> para) {
		return cashRedLogMapper.getCashRedLogListByPara(para);
	}

}
